using Tatibah;

namespace HeaderFooter
{
	// See the DocumetAPI.PDF fro the results
    class Program
    {
        static void Main(string[] args)
        {
            // Create the document
            Document document = new Document(@"C:\Tatibah\Results\HeaderFooter.docx");

            // Create a Header and Footer
            Header header = new Header(new Paragraph("This is the Header"));
            Footer footer = new Footer(new Paragraph("This is the Footer"));
            document.Append(header, footer);


            // Add some content to the document
            document.Append(new Paragraph(
                "No one would have believed in the last years of the nineteenth " +
                "century that this world was being watched keenly and closely by " +
                "intelligences greater than man's and yet as mortal as his own; that as " +
                "men busied themselves about their various concerns they were " +
                "scrutinised and studied, perhaps almost as narrowly as a man with a " +
                "microscope might scrutinise the transient creatures that swarm and " +
                "multiply in a drop of water."
            ));


            // Save the Document
            document.Save();
            document.Close();
        }
    }
}
